import { request } from '@/utils'

export default {
  // 查找所有病情
  findAllRegistration: (data) => request.post('/findallRegistration', data, { noNeedToken: true }),
  // 获取就诊与待就诊与已就诊
  getRegistrationCount: (data) => request.post('/getRegistrationCount', data, { noNeedToken: true }),
  // 安装ID查找病情，病例信息
  findOneByIdRegistration: (data) => request.post('/findRegistrationByIdRegistration', data, { noNeedToken: true }),
  // 保存病例主诉
  updataCase: (data) => request.post('/updataCase', data, { noNeedToken: true }),
  // 保存病例回访
  updataCaseVisit: (data) => request.post('/updataCaseVisit', data, { noNeedToken: true }),
  // 保存病例的诊断开药
  updataCaseDiagnostic: (data) => request.post('/updataCaseDiagnostic', data, { noNeedToken: true }),
  // 查询就诊数据，通过一些选项
  findAllByOptionRegistration: (data) => request.post('/findAllByOptionRegistration', data, { noNeedToken: true }),
  // 获取当月，每天的挂号数
  findCountByDateRegistration: (data) => request.post('/findCountByDateRegistration', data, { noNeedToken: true }),
}
